﻿try {
    if (document.getElementById("ctl00_ContentPlaceHolder3_btnfilter") != null) {
        document.getElementById("ctl00_ContentPlaceHolder3_btnfilter").style.display = 'none';
        if (document.getElementById("mb_filter_img") == null) {
            var mb_filter_img = document.createElement('img');
            mb_filter_img.id = "mb_filter_img";
            mb_filter_img.src = 'images/filter_disabled.jpg';
            mb_filter_img.style.cursor = "pointer";
            mb_filter_img.style.verticalAlign = "middle";
            mb_filter_img.alt = "Show Filter Options";
            mb_filter_img.onmouseover = function () { document.getElementById("mb_filter_img").src = 'images/filter.jpg'; };
            mb_filter_img.onmouseout = function () { document.getElementById("mb_filter_img").src = 'images/filter_disabled.jpg'; };
            mb_filter_img.onclick = function (evt) {
                try {
                    document.getElementById("ctl00_ContentPlaceHolder3_btnfilter").click();
                }
                catch (Excp) { }
            };
            document.getElementById("ctl00_ContentPlaceHolder3_btnfilter").parentNode.appendChild(mb_filter_img);
        }
    }
}
catch (Exc_mb_filter) { }